/*
 * @Date: 2023-04-13 15:20:52
 * @LastEditTime: 2023-05-19 15:09:39

 * 介绍:
 */
import Rdialog from "./Rdialog.vue";
import Rbutton from "@@/components/rework/Rbutton.vue";

export default Rdialog;
export interface Config {
  /**显示返回按钮 */
  showBack: boolean | undefined;
  showClose: boolean | undefined;
  /**显示取消按钮 */
  showNoBtn: boolean | undefined;
  /**显示确定按钮 */
  showOkBtn: boolean | undefined;
  /**取消按钮文本 */
  noBtnText: string | undefined;
  /**确定按钮文本 */
  okBtnText: string | undefined;
  /**标题 */
  title: undefined | string | undefined;
  /**宽度 */
  width: undefined | string | number | undefined;
  /**是否在页面退回时自动关闭 */
  backClose: boolean | undefined;
  /**显示模态框 */
  show: boolean | undefined;
  /**禁用确定按钮 */
  disabledOkBtn: boolean | undefined;
  /**禁用取消按钮 */
  disabledNoBtn: boolean | undefined;
  zIndex: number | string | undefined | undefined;
  /**确定按钮props */
  okBtnProps: InstanceType<typeof Rbutton>["$props"] | undefined;
  /**取消按钮props */
  noBtnProps: InstanceType<typeof Rbutton>["$props"] | undefined;
}
/**获取DialogRef实例 */
export function useRdialogRef() {
  return ref<InstanceType<typeof Rdialog>>();
}
